import { defHttp } from '/@/utils/http/axios';
// @ts-ignore
import { GetUserInfoModel } from './model/userModel';

enum Api {
  GetUserInfo = '/shop-admin/api/v1/admin/user/me',
}

/**
 * @description: getUserInfo
 */
export function getUserInfo() {
  return defHttp.get<GetUserInfoModel>({ url: Api.GetUserInfo }, { errorMessageMode: 'none' });
}
